// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #8A2BE2;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
  border: 1px dashed #FFD700;
  &:hover {
    border-color: #1E90FF;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu {
  background-color: #1E2B4D !important;
  .el-menu-item, .el-submenu__title {
    color: #FFFFFF !important;
    &:hover {
      background-color: rgba(58, 123, 255, 0.3) !important;
    }
  }
  .el-menu-item.is-active {
    background-color: #3A7BFF !important;
  }
}
/* 折叠菜单优化 */
body .el-menu--collapse {
  width: 64px !important;

  .el-submenu > .el-submenu__title,
  .el-menu-item {
    padding: 0 20px !important;
    text-align: center;

    .el-icon {
      font-size: 20px !important;
      margin-right: 0 !important;
      color: #FFFFFF !important;
    }

    &:hover {
      background-color: rgba(58, 123, 255, 0.3) !important;
      .el-icon {
        color: #3A7BFF !important;
      }
    }
  }

  .el-submenu__icon-arrow {
    display: none !important;
  }
}

/* 强制顶部导航栏样式 */
body .el-header,
body .el-header .navbar,
body .el-header .right-menu {
  background-color: #1E2B4D !important;
  color: #FFFFFF !important;
}

body .el-header .el-dropdown-link,
body .el-header .navbar-item {
  color: #FFFFFF !important;
}

body .el-header .el-dropdown-link:hover {
  color: #3A7BFF !important;
}

/* 强制菜单样式 */
body .el-menu,
body .el-menu--popup,
body .el-submenu .el-menu,
body .el-submenu .el-menu-item,
body .el-menu--vertical,
body .el-menu--horizontal > .el-submenu .el-menu,
body .el-menu--vertical .el-menu,
body .el-menu--horizontal {
  background-color: #1E2B4D !important;
  border: none !important;
}

/* 覆盖默认样式 */
.el-menu--horizontal > .el-menu-item,
.el-menu--horizontal > .el-sub-menu .el-sub-menu__title {
  height: 50px !important;
  line-height: 50px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  background-color: #1E2B4D !important;

  &:hover, &:focus {
    color: #FFFFFF !important;
    background-color: rgba(58, 123, 255, 0.15) !important;
  }

  &.is-active {
    color: #FFFFFF !important;
    background-color: #3A7BFF !important;
    border-bottom: none !important;
  }
}

.el-menu--horizontal > .el-sub-menu.is-active .el-sub-menu__title {
  border-bottom: none !important;
  color: #FFFFFF !important;
  background-color: #3A7BFF !important;
}

/* 子菜单弹出框样式 */
.el-menu--popup {
  background-color: #1E2B4D !important;
  border: none !important;
  padding: 5px 0;
  min-width: 150px;

  .el-menu-item {
    color: rgba(255, 255, 255, 0.8) !important;
    background-color: #1E2B4D !important;

    &:hover {
      color: #FFFFFF !important;
      background-color: rgba(58, 123, 255, 0.15) !important;
    }

    &.is-active {
      color: #FFFFFF !important;
      background-color: #3A7BFF !important;
    }
  }
}

/* 菜单图标样式 */
body .el-menu-item .svg-icon,
body .el-submenu__title .svg-icon {
  margin-right: 16px;
  color: inherit;
  font-size: 18px;
  vertical-align: -0.1em;
}

/* 折叠菜单样式 */
body .el-menu--collapse {
  width: 54px !important;

  .el-submenu__title {
    padding: 0 16px !important;
  }

  .el-submenu__icon-arrow {
    display: none;
  }
}

/* 弹出菜单样式 */
body .el-menu--popup {
  min-width: 200px;
  margin: 0;
  padding: 5px 0;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);

  .el-menu-item {
    height: 45px;
    line-height: 45px;
    margin: 2px 0;
    padding: 0 20px;
  }
}
